<?php
namespace app\admin\validate;
use think\Validate;

class NewsClassify extends Validate
{
	protected $rule=[
		'name'=>'unique:news_classify,name,id',
	];
	protected $message=[
		'name'=>'该新闻分类名已存在',
	];
}